from engine import Engine
from lx.solver import GreedySolver
engine = Engine(mySolver=GreedySolver)

if __name__ == '__main__':

    # 分析数据
    # engine.analyse_all_data()

    # 单次求解输出到屏幕
    engine.solve_from_file_to_std()

    # 单次求解输出到文件
    # engine.solve_from_file_to_file(output_path='data2.out')

    # 对所有数据求解，保留有史以来最好的
    # engine.update_best_sol_for_all_data_by_solve()
    engine.batch_update_best_sol_for_all_data_by_solve()
    # 列出所有数据求解的最优值的总和
    engine.list_best_solution_value_for_all_data()
